package com.chixing.day02_switch_case;

public class SwitchCaseDemo {
    public static void main(String[] args) {
        /**
         * switch-case 后面变量的类型:
         *          ||
         * 能够转换成int类型的类型:char,byte,short,int
         *                      Character,Byte,Short,Integer
         *                      String
         *                      enum(枚举)
         */
        int day =2;
        switch (day){
            case 1:
                System. out. println("星期一");break;
            case 2:
                System. out. println("星期二");break;
            case 3:
                System. out. println("星期三");break;
            default:
                System. out. println("无效的数字"); break;
        }
    }
}
